using System;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using TMPro;
using UnityEngine;
using Yoozoo.Framework.Managers;

namespace com.yoozoo.gta
{
    public class AllianMarkTranslate : MonoBehaviour
    {
        public int signID;
        public int markid=-1;

        public Transform[] translateArry;
        private Tween tweenr;
        public void LoadingRotate()
        {
            tweenr=translateArry[1].DORotate(new Vector3(45, 45, 360), 1.5f, RotateMode.FastBeyond360)
                .SetLoops(-1, LoopType.Restart);
        }

        public void StopRotate()
        {
            tweenr.Kill();
        }

        public void SetTransformShow(int showIndex)
        {
            for (int i = 0; i < translateArry.Length; i++)
            {
                translateArry[i].gameObject.SetActive(i==(showIndex-1));
            }
        }
    }
}
